package itbour.onetouchshow.constants;

import com.google.gson.Gson;

import java.util.ArrayList;
import java.util.List;

import itbour.onetouchshow.R;
import itbour.onetouchshow.bean.HomeDetailslBean;
import itbour.onetouchshow.bean.MineItemBean;
import itbour.onetouchshow.bean.PrivilegeBean;
import itbour.onetouchshow.bean.ServiceAddressBean;
import itbour.onetouchshow.bean.VideoSizeConfigBean;
import itbour.onetouchshow.utils.SpUtils;

/**
 * Created by guoh on 2018/3/27.
 * 功能描述：App中固定数据模拟
 * 需要的参数：
 */

public class DataCreater {

    public static final String imageMaxSize = "生成图片过大,请移动进行裁剪或重新选择图片";
    public static final String videoTypes = "仅支持mov、mp4格式视频，请重新选择视频上传";
    public static final String videoShort = "视频过短, 请选择超过1秒的视频";
    public static final String videoLong = "视频过长, 请选择小于3分钟的视频";
    public static final String setCover = "你已为此作品去水印，请重新生成作品后设置封面";
    public static final String setbg = "你已为此作品去水印，请重新生成作品后设置背景";

    public static final List<MineItemBean> getDefaultMineData() {
        List<MineItemBean> datas = new ArrayList<>();
        HomeDetailslBean basicInfo = new Gson().fromJson(SpUtils.getInstance().getString(AppConst.APPBASEINFO), HomeDetailslBean.class);
        if (basicInfo != null && basicInfo.getAppControl().getHiddenMyActivity() == 0) {
            datas.add(new MineItemBean("我的大赛", R.mipmap.icon_challenge_of_mine));
        }
        if (basicInfo != null && basicInfo.getAppControl().getHiddenMyReward() == 0) {
            datas.add(new MineItemBean("我的奖励", R.mipmap.icon_income));
        }

        datas.add(new MineItemBean("我的订单", R.mipmap.me_itme_myorder));
        datas.add(new MineItemBean("我的秀米", R.mipmap.icon_item_xiumi, 0));
//        datas.add(new MineItemBean("尊享会员", R.mipmap.icon_item_vip,true));
        datas.add(new MineItemBean("我的收藏", R.mipmap.me_item_collect));


        datas.add(new MineItemBean("意见反馈", R.mipmap.me_item_feed_back));
        datas.add(new MineItemBean("联系客服", R.mipmap.me_item_kf));


        datas.add(new MineItemBean("去评分", R.mipmap.me_item_score));
        datas.add(new MineItemBean("设置", R.mipmap.me_item_seting));
        return datas;
    }

    //Vip特权
    public static final List<PrivilegeBean> getVipPrivilege() {
        List<PrivilegeBean> datas = new ArrayList<>();
        datas.add(new PrivilegeBean("尊享专属模版", "稳定更新，无限量免费制作", R.mipmap.icon_privilege1));
        datas.add(new PrivilegeBean("尊贵VIP标识", "会员专属标志，尽享尊贵", R.mipmap.icon_privilege2));
        datas.add(new PrivilegeBean("高峰期优先下载权", "独家高速下载通道，快于常人", R.mipmap.icon_privilege3));
        datas.add(new PrivilegeBean("线下活动优先参加", "海量活动，会员先人一步", R.mipmap.icon_privilege4));
        datas.add(new PrivilegeBean("云端存储作品永不过期", "永不过期，随时下载使用", R.mipmap.icon_privilege5));
        datas.add(new PrivilegeBean("更多会员特权", "敬请期待", R.mipmap.icon_privilege6));
        return datas;
    }

    public static final List<ServiceAddressBean> getServiceAddress() {
        List<ServiceAddressBean> strings = new ArrayList<>();
        strings.add(new ServiceAddressBean("https://mobile.itbour.com/", "正式服务器"));
        strings.add(new ServiceAddressBean("http://test.itbour.com:2918/", "测试服务器"));
        strings.add(new ServiceAddressBean("http://192.168.31.3:2918/", "王俊"));
        strings.add(new ServiceAddressBean("http://192.168.31.66:2918/", "李强"));
        strings.add(new ServiceAddressBean("http://192.168.31.24:3011/", "严旭东"));
        return strings;
    }

    public static final List<VideoSizeConfigBean> getVideoSizeConfig() {
        List<VideoSizeConfigBean> sizeConfigBeans = new ArrayList<>();
        sizeConfigBeans.add(new VideoSizeConfigBean(R.mipmap.icon_video_record_dy, "9:16 竖长方形", "适用于手机端抖音/微视等\n竖屏视频", R.drawable.video_size1_background_color, "9:16", 1, 92, 1, 60, 80, 720, 1280));
        sizeConfigBeans.add(new VideoSizeConfigBean(R.mipmap.icon_video_record_tb, "1:1 正方形", "适用于电商类淘宝\n商品展示", R.drawable.video_size2_background_color, "1:1", 2, 91, 1, 60, 960, 960, 960));
        sizeConfigBeans.add(new VideoSizeConfigBean(R.mipmap.icon_video_record_jd, "16:9 横长方形", "适用于电脑端网站(京东)\n广告宣传", R.drawable.video_size3_background_color, "16:9", 3, 93, 1, 60, 80, 1280, 720));
        sizeConfigBeans.add(new VideoSizeConfigBean(0, "", "更多尺寸,敬请期待!", R.drawable.video_size4_background_color, null, 0, 0, 0, 0, 0, 0, 0));
        return sizeConfigBeans;
    }
}
